package com.ruoyi.deal.service.impl;

import java.util.List;

import com.ruoyi.deal.mapper.CcsComplaintMapper;
import com.ruoyi.deal.service.ICcsComplaintService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.deal.domain.CcsComplaint;

/**
 * 投诉Service业务层处理
 *
 * @author ruoyi
 * @date 2024-10-17
 */
@Service
public class CcsComplaintServiceImpl implements ICcsComplaintService
{
    @Autowired
    private CcsComplaintMapper ccsComplaintMapper;

    /**
     * 查询投诉
     *
     * @param id 投诉主键
     * @return 投诉
     */
    @Override
    public CcsComplaint selectCcsComplaintById(Long id)
    {
        return ccsComplaintMapper.selectCcsComplaintById(id);
    }

    /**
     * 查询投诉列表
     *
     * @param ccsComplaint 投诉
     * @return 投诉
     */
    @Override
    public List<CcsComplaint> selectCcsComplaintList(CcsComplaint ccsComplaint)
    {
        return ccsComplaintMapper.selectCcsComplaintList(ccsComplaint);
    }

    /**
     * 新增投诉
     *
     * @param ccsComplaint 投诉
     * @return 结果
     */
    @Override
    public int insertCcsComplaint(CcsComplaint ccsComplaint)
    {
        return ccsComplaintMapper.insertCcsComplaint(ccsComplaint);
    }

    /**
     * 修改投诉
     *
     * @param ccsComplaint 投诉
     * @return 结果
     */
    @Override
    public int updateCcsComplaint(CcsComplaint ccsComplaint)
    {
        return ccsComplaintMapper.updateCcsComplaint(ccsComplaint);
    }

    /**
     * 批量删除投诉
     *
     * @param ids 需要删除的投诉主键
     * @return 结果
     */
    @Override
    public int deleteCcsComplaintByIds(Long[] ids)
    {
        return ccsComplaintMapper.deleteCcsComplaintByIds(ids);
    }

    /**
     * 删除投诉信息
     *
     * @param id 投诉主键
     * @return 结果
     */
    @Override
    public int deleteCcsComplaintById(Long id)
    {
        return ccsComplaintMapper.deleteCcsComplaintById(id);
    }
}
